package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.SpuSaleAttr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 李旭
 * @create: 2021-09-30 09:31
 **/
public interface SpuSaleAttrMapper extends BaseMapper<SpuSaleAttr> {
    //为了添加SKU  查询spuId 对应的销售属性及属性值集合
    List<SpuSaleAttr> spuSaleAttrList(Long spuId);
    //查询销售属性及选中
    List<SpuSaleAttr> getSpuSaleAttrListCheckBySku(@Param("spuId") Long spuId,@Param("skuId") Long skuId);
}
